<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>
<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>公司名称
                </label>
                <div class="layui-input-block">
                    <input type="text" name="name" id="name" placeholder="公司名称" required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>联系人
                </label>
                <div class="layui-input-block">
                    <input type="text" name="contacts" id="contacts" placeholder="联系人" required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>联系电话
                </label>
                <div class="layui-input-block">
                    <input type="text" name="contact_number" id="contact_number" placeholder="联系电话" required="required"
                        lay-verify="required|phone" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    是否分销商
                </label>
                <div class="layui-input-block">
                    <input type="radio" name="is_distributor" value="0" title="否" checked>
                    <input type="radio" name="is_distributor" value="1" title="是">
                </div>
            </div>
            <fieldset class="layui-elem-field layui-field-title">
                <legend style="font-size:14px;color:#000">财务信息</legend>
            </fieldset>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    收款方式
                </label>
                <div class="layui-input-block">
                    <input type="radio" name="payment_method" value="1" title="银行卡对公" checked>
                    <input type="radio" name="payment_method" value="2" title="银行卡对私">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    收款人
                </label>
                <div class="layui-input-block">
                    <input type="text" name="payee" placeholder="收款人" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    收款账号
                </label>
                <div class="layui-input-block">
                    <input type="number" name="collection_account" placeholder="收款账号" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    开户行
                </label>
                <div class="layui-input-block">
                    <input type="text" name="bank_name" placeholder="开户行" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    增值税率
                </label>
                <div class="layui-input-block">
                    <input type="text" name="tax_rate" placeholder="增值税率" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            <input type="hidden" name="id" id="id" value="" />
            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />
        </form>
    </div>
    <script>
        let params = {
            addUrl:'/admin/company/add',
            editUrl:'/admin/company/edit',
            detailUrl: '/admin/company/detail',
        }
        form_ajax(params)
    </script>
</body>

</html>